﻿using System.Text;
using Newtonsoft.Json;

namespace T.FAS.Runtime.DataAccess.Engine.ValidateChecker.Entity
{
    public class ItemCheckResult
    {
        [JsonIgnore]
        public ValidateCheckItem ValidateCheckItem { get; set; }
        /// <summary>
        /// 是否停止后续校验流程，true:停止， false:继续执行验证
        /// </summary>
        public bool IsStop { get; set; }

        /// <summary>
        /// 校验结果,true:校验通过, false:校验失败
        /// </summary>
        private bool flag = true;
        /// <summary>
        /// 校验结果,true:校验通过, false:校验失败
        /// </summary>
        public bool Flag
        {
            get
            {
                return flag;
            }
            set
            {
                flag = value;
            }
        }

        //private string msg;
        /// <summary>
        /// 错误信息
        /// </summary>
        public StringBuilder Msg { get; set; } = new StringBuilder();

    }
}
